'''
Created on 15.Haz.2009

@author: okaya
'''
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'cli_signage.ui'
#
# Created: Mon Jun 15 11:49:35 2009
#      by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!
import sys
import time
from PyQt4 import QtCore, QtGui
from PyQt4 import QtWebKit



class deneme1:
        def __init__(self, ui):
            self.ui = ui
        
        def text1_yaz(self):
          a=0
           
          while a<3:
                a=a+1
                
                test_txt=ui.label.text()
                
                ui.label.setText( '<font color="#FF0000" bold>'+ str(a) + "    "  + test_txt+ '</font>' )
                font1='Arial'
                ui.label.setFont(QtGui.QFontDialog.result())
            
            


 
 
   
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.pushButton = QtGui.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(720, 0, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(0, 510, 791, 41))
        self.label.setObjectName("label")
        
        self.graphicsView = QtGui.QGraphicsView(self.centralwidget)
        self.graphicsView.setGeometry(QtCore.QRect(20, 240, 431, 261))
        self.graphicsView.setFrameShape(QtGui.QFrame.WinPanel)
        self.graphicsView.setFrameShadow(QtGui.QFrame.Sunken)
        self.graphicsView.setObjectName("graphicsView")
        self.webView = QtWebKit.QWebView(self.centralwidget)
        self.webView.setGeometry(QtCore.QRect(120, 700, 300, 200))
        self.webView.setUrl(QtCore.QUrl("about:blank"))
        self.webView.setObjectName("webView")
        self.webView_2 = QtWebKit.QWebView(self.centralwidget)
        self.webView_2.setGeometry(QtCore.QRect(20, 10, 431, 221))
        self.webView_2.setUrl(QtCore.QUrl("http://127.0.0.1/"))
        self.webView_2.setObjectName("webView_2")
        self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(640, 0, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")

        self.calendarWidget = QtGui.QCalendarWidget(self.centralwidget)
        self.calendarWidget.setGeometry(QtCore.QRect(470, 260, 321, 221))
        self.calendarWidget.setGridVisible(True)
        self.calendarWidget.setNavigationBarVisible(False)
        self.calendarWidget.setDateEditEnabled(False)
        self.calendarWidget.setObjectName("calendarWidget")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.deneme1 = deneme1(self)
        QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), MainWindow.close)
        QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL("clicked()"),self.deneme1.text1_yaz)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("MainWindow", "&Kapat", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_2.setText(QtGui.QApplication.translate("MainWindow", "TEST", None, QtGui.QApplication.UnicodeUTF8))




            


app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(window)

window.show()
sys.exit(app.exec_())



